package com.jie.server.core.properties;

/**
 * 服务器属性
 * @author XieZhiJie
 * @date 2022/04/22 11:47
 */
public class ServerProperties {

    /**
     * 服务器监听的端口号
     */
    public static final int PORT = 8080;

    /**
     * 读写的ByteBuffer大小
     */
    public static final int BUFFER_SIZE = 1024;

    /**
     * 线程池核心线程数
     */
    public static final int CORE_POOL_SIZE = 30;

    /**
     * 线程池中允许的最大线程数
     */
    public static final int MAX_POOL_SIZE = 50;

    /**
     * 线程空闲时的存活时间, 该参数只在线程数大于corePoolSize时才有用
     */
    public static final Long KEEP_ALIVE_TIME = 1L;

    /**
     * 阻塞队列初始化大小
     */
    public static final int QUEUE_CAPACITY = 100;

}
